package cn.gzjp.modules.rice.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.rice.entity.RiceCashCoupon;
import cn.gzjp.modules.rice.dao.RiceCashCouponDao;

/**
 * 粮票记录Service
 * @author zengcp
 * @version 2018-12-01
 */
@Service
@Transactional(readOnly = true)
public class RiceCashCouponService extends CrudService<RiceCashCouponDao, RiceCashCoupon> {

	public RiceCashCoupon get(String id) {
		return super.get(id);
	}
	
	public List<RiceCashCoupon> findList(RiceCashCoupon riceCashCoupon) {
		return super.findList(riceCashCoupon);
	}
	
	public Page<RiceCashCoupon> findPage(Page<RiceCashCoupon> page, RiceCashCoupon riceCashCoupon) {
		return super.findPage(page, riceCashCoupon);
	}
	
	@Transactional(readOnly = false)
	public void save(RiceCashCoupon riceCashCoupon) {
		super.save(riceCashCoupon);
	}
	
	@Transactional(readOnly = false)
	public void delete(RiceCashCoupon riceCashCoupon) {
		super.deleteByLogic(riceCashCoupon);
	}
	
}